<template>
    <view class="container" style="">
            <view class="fui-cell noborder" v-if="verifygoodlogs.length==0">
                <view style="margin: 45rpx auto;font-size:26rpx;color:#b2b2b2;text-align: center">
                  暂时没有记录</view>
            </view>
        <block v-else>
            <view class="fui-cell-group hlbblock30" v-for="itemlog in verifygoodlogs">
                <view style="display: flex;justify-content: space-between">
                    <view class="font2599">
                        {{itemlog.create_time}}
                    </view>
                    <view style="font-size: 25rpx;color:#F63E36 ">
                        核销成功
                    </view>
                </view>
                <view style="display: flex;justify-content: space-between;align-items: center">
                    <view>
                        <view>
                            {{verifygoods.product_name}}
                        </view>
                        <view class="font2599">
                            核销门店:{{itemlog.store_name}}
                        </view>
                    </view>
                    <view>
                        - {{itemlog.verify_num}}
                    </view>
                </view>
            </view>
        </block>
    </view>
</template>

<script>
    var _self;
    export default{
        computed: {
        },
        data() {
            return {
                verifygoodlogs:[],
                verifygoods:[],
                pid:'',
				product_type: ''
            };
        },
        onShow() {
            _self.getdata()
        },
        async onLoad(options){
            _self = this;
            _self.pid = options.pid;
			_self.product_type = options.product_type;
        },
        methods:{
            getdata(){
                let self = this;
                self._post(
                    'user.Order/getOrderVerifyLog', {
                        order_product_id: self.pid,
						product_type: self.product_type
                    },
                    function(res) {
                        console.log(res)
                        let t =res.data;
                        _self.verifygoodlogs= t.log;
                        _self.verifygoods= t;
                    }
                );
            },
        },
    }
</script>

<style lang='scss'>
    page{
        background: #F2F2F2;
        padding-bottom: 160upx;
    }
</style>
